package com.etung.iot.demo.configs;

/**
 * topic 格式
 * /dtu/{productKey}/{deviceName}/*
 */

public class TopicConfig {
    //实时数据上传topic
    public static final String REAL_DATA_TOPIC = "/dtu/+/+/data";
    //plc状态上传topic
    public static final String PLC_STATUS_TOPIC = "/dtu/+/+/plcStatus";
    //网关信息上传topic
    public static final String COLLECTOR_INFO_TOPIC = "/dtu/+/+/collectorInfo";
    //报警信息上传topic
    public static final String ALARM_INFO_TOPIC = "/dtu/+/+/alarmInfo";
    //控制变量下发设备端topic
    public static final String VARIANT_CONTROL_TOPIC = "/dtu/+/+/control";
    //控制变量结果topic
    public static final String VARIANT_REPLY_TOPIC = "/dtu/+/+/controlReply";
    //远程下载topic
    public static final String DOWNLOAD_TOPIC = "/dtu/+/+/download";
    //远程下载回复topic
    public static final String DOWNLOAD_REPLY_TOPIC = "/dtu/+/+/downloadReply";
    //远程更新topic
    public static final String REMOTE_UPDATE_TOPIC = "/dtu/+/+/ota/upgrade";
    //远程更新结果topic
    public static final String REMOTE_UPDATE_REPLY_TOPIC = "/dtu/+/+/ota/upgradeReply";
    //时间校准topic
    public static final String TIME_SYNS_TOPIC = "/dtu/+/+/time";
    //系统级topic(box断开连接和上线连接提醒)
    public static final String SYS_TOPIC = "$SYS/brokers/+/clients/#";



    public static final String SYS_TOPIC_PREFIX = "$SYS/brokers";

    public static final int MESSAGE_TYPE_REAL_DATA = 1;
    public static final int MESSAGE_TYPE_PLC_STATUS = 2;
    public static final int MESSAGE_TYPE_BOX_STATUS = 3;
}
